package com.googlecode.continuity.core.client.rpc;

import com.google.gwt.user.client.rpc.RemoteService;
import com.googlecode.continuity.core.client.ContinuityUser;

/**
 * UserRPC, provides methods to retrieve, store and manipulate user accounts.
 *
 * @author Peter Schmitt <aragos@aragos.de>
 */
public interface UserRPC extends RemoteService {
  /**
   * Retrieve the number of users currently known to the system.
   * @return the number of users known to the system
   */
  int getUserCount();

  /**
   * Returns the current user.
   * @return the current user
   */
  ContinuityUser getCurrentUser();
}
